import request from '@/utils/request'

// 查询客户公海列表
export function listSea(query) {
  return request({
    url: '/customer/sea/list',
    method: 'get',
    params: query
  })
}

// 查询客户公海详细
export function getSea(id) {
  return request({
    url: '/customer/sea/' + id,
    method: 'get'
  })
}

// 新增客户公海
export function addSea(data) {
  return request({
    url: '/customer/sea',
    method: 'post',
    data: data
  })
}

// 修改客户公海
export function updateSea(data) {
  return request({
    url: '/customer/sea',
    method: 'put',
    data: data
  })
}

// 删除客户公海
export function delSea(id) {
  return request({
    url: '/customer/sea/' + id,
    method: 'delete'
  })
}
